package iot.core.springboot;

import iot.core.manager.auth.AuthManager;
import iot.core.manager.htcll.HTCtlManager;
import iot.core.manager.htcls.HTClsManager;
import iot.core.manager.job.DBJobManager;
import iot.core.manager.job.JobManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Slf4j

@Component
public class MyApplicationRunner  implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {

       // log.info("我是Spring容器启动后立即执行的方法");
        HTClsManager.getInstance().start();


        HTCtlManager.getInstance().start();

        AuthManager.getInstance().start();

        //JobManager.getInstance().start();
        //DBJobManager.getInstance().start();
    }
}
